/**
 * 
 */
package com.iss.card.model;

import com.iss.card.webservice.BaseModel;

/**
 * @author dtdh
 *
 */
public class MarkedProductDetailInfo extends ProductDetailInfo {
	
	private static final String PDKEY_STORE_ID = "storeId";
	private static final String PDKEY_PRODUCT_ID = "productId";
	private static final String PDKEY_PRODUCT_PICURL = "productPicUrl";
	private static final String PDKEY_PRODUCT_PICW = "productPicW";
	private static final String PDKEY_PRODUCT_PICH = "productPicH";
	private static final String PDKEY_PRODUCT_DELETED = "productDeleted";
	private static final String PDKEY_PRODUCT_MARKED = "productMarked";
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -7182673638573481017L;

	/**
	 * 
	 */
	public MarkedProductDetailInfo() {
		
	}

	/* (non-Javadoc)
	 * @see com.iss.card.model.ProductDetailInfo#addValues(java.lang.String, java.lang.String, com.iss.card.webservice.BaseModel)
	 */
	@Override
	public void addValues(String tempString, String valueString,
			BaseModel baseMode) {
		if (null == tempString) {
			return;
		}

		if (tempString.equals(PDKEY_PRODUCT_ID)) {
			this.mProductID = Integer.valueOf(valueString);
		} else if (tempString.equals(PDKEY_PRODUCT_PICURL)) {
			this.mProductPicUrl = valueString;
		} else if (tempString.equals(PDKEY_PRODUCT_PICW)) {
			this.mProductPicW = Integer.valueOf(valueString);
		} else if (tempString.equals(PDKEY_PRODUCT_PICH)) {
			this.mProductPicH = Integer.valueOf(valueString);
		} else if (tempString.equals(PDKEY_PRODUCT_DELETED)) {
			this.mProductDeleted = Integer.valueOf(valueString);
		} else if (tempString.equals(PDKEY_PRODUCT_MARKED)) {
			this.mProductMarked = true;
		} else if (tempString.equals(PDKEY_STORE_ID)) {
			this.mStoreID = valueString;
		}
		baseMode = this;
	}

	
}
